#ifndef QDATABASEPLUGIN_H
#define QDATABASEPLUGIN_H

#include "../../include/plugininterface.h"

#include "../../include/pageinterface.h"


class QDataBaseWidget :public PageInterface
{
    Q_OBJECT
public:
    QDataBaseWidget(AbstractCore *core);

    QString         text();
    QIcon           icon();
    QWidget*        widget();
    int             index();
    bool            enabled();

    QFindResult* search(const QString& text,bool sensitive,bool whole);
protected:
    QString         m_text;
    QIcon           m_icon;
    AbstractCore    *m_core;
    QWidget*        m_widget;

};



class QDataBasePlugin :public PluginInterface
{
    Q_OBJECT
    Q_INTERFACES(PluginInterface)
public:
    void    initPlugin(AbstractCore *core);
};

#endif // QDATABASEPLUGIN_H
